[INFO] cloning repository https://github.com/satyamlal/HTTP-Server-RUST
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/satyamlal/HTTP-Server-RUST" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatyamlal%2FHTTP-Server-RUST", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatyamlal%2FHTTP-Server-RUST'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 226936d906119d0324bff8a21bf8dbbc33902f16
[INFO] fixing satyamlal/HTTP-Server-RUST against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsatyamlal%2FHTTP-Server-RUST" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/satyamlal/HTTP-Server-RUST
[INFO] finished tweaking git repo https://github.com/satyamlal/HTTP-Server-RUST
[INFO] tweaked toml for git repo https://github.com/satyamlal/HTTP-Server-RUST written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/satyamlal/HTTP-Server-RUST on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/satyamlal/HTTP-Server-RUST already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af
[INFO] running `Command { std: "docker" "start" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking simd-adler32 v0.3.8
[INFO] [stderr]     Checking miniz_oxide v0.8.9
[INFO] [stderr]     Checking flate2 v1.1.9
[INFO] [stderr]     Checking HTTP-Server-RUST v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found `println`
[INFO] [stdout]   --> src/main.rs:27:6
[INFO] [stdout]    |
[INFO] [stdout] 27 |     }
[INFO] [stdout]    |      ^ help: add `;` here
[INFO] [stdout] 28 |     println!("Server is listening on Port 4221 serving dir: {}", directory);
[INFO] [stdout]    |     ------- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:10:88
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn parse_headers(buf_reader: &mut impl BufRead) -> Result<HashMap<String, String>, Error> {
[INFO] [stdout]    |                                                                                        ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf_readers` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:16:26
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let bytes_read = buf_readers.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 16 -         let bytes_read = buf_readers.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout] 16 +         let bytes_read = buf_reader.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:23:24
[INFO] [stdout]    |
[INFO] [stdout] 23 |             return Err(Error::new(ErrorKind::InvalidData, "Header line exceeded maximum length!"));
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:44:24
[INFO] [stdout]    |
[INFO] [stdout] 44 |             return Err(Error::new(ErrorKind::InvalidData, "Malformed HTTP Header"));
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     Err(Error::new(ErrorKind::InvalidData, "Too Many headers in request!"));
[INFO] [stdout]    |         ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `process` in this scope
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             process::exit(1);
[INFO] [stdout]    |             ^^^^^^^ use of unresolved module or unlinked crate `process`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `process`, use `cargo add process` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::process;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufReader`
[INFO] [stdout]  --> src/parse_headers.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{BufRead, BufReader, ErrorKind, Read},
[INFO] [stdout]   |                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found `println`
[INFO] [stdout]   --> src/main.rs:27:6
[INFO] [stdout]    |
[INFO] [stdout] 27 |     }
[INFO] [stdout]    |      ^ help: add `;` here
[INFO] [stdout] 28 |     println!("Server is listening on Port 4221 serving dir: {}", directory);
[INFO] [stdout]    |     ------- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:10:88
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn parse_headers(buf_reader: &mut impl BufRead) -> Result<HashMap<String, String>, Error> {
[INFO] [stdout]    |                                                                                        ^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `buf_readers` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:16:26
[INFO] [stdout]    |
[INFO] [stdout] 16 |         let bytes_read = buf_readers.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout]    |                          ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: a local variable with a similar name exists
[INFO] [stdout]    |
[INFO] [stdout] 16 -         let bytes_read = buf_readers.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout] 16 +         let bytes_read = buf_reader.by_ref().take(MAX_HEADER_LINE_LEN).read_line(&mut line)?; // Guard against OOM
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:23:24
[INFO] [stdout]    |
[INFO] [stdout] 23 |             return Err(Error::new(ErrorKind::InvalidData, "Header line exceeded maximum length!"));
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:44:24
[INFO] [stdout]    |
[INFO] [stdout] 44 |             return Err(Error::new(ErrorKind::InvalidData, "Malformed HTTP Header"));
[INFO] [stdout]    |                        ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find type `Error` in this scope
[INFO] [stdout]   --> src/parse_headers.rs:47:9
[INFO] [stdout]    |
[INFO] [stdout] 47 |     Err(Error::new(ErrorKind::InvalidData, "Too Many headers in request!"));
[INFO] [stdout]    |         ^^^^^ use of undeclared type `Error`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::fmt::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Error;
[INFO] [stdout]    |
[INFO] [stdout]  1 + use core::error::Error;
[INFO] [stdout]    |
[INFO] [stdout]    = and 1 other candidate
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: cannot find module or crate `process` in this scope
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 25 |             process::exit(1);
[INFO] [stdout]    |             ^^^^^^^ use of unresolved module or unlinked crate `process`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `process`, use `cargo add process` to add it to your `Cargo.toml`
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::process;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thread`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 |     thread,
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BufReader`
[INFO] [stdout]  --> src/parse_headers.rs:3:19
[INFO] [stdout]   |
[INFO] [stdout] 3 |     io::{BufRead, BufReader, ErrorKind, Read},
[INFO] [stdout]   |                   ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/handler.rs:42:44
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str);
[INFO] [stdout]    |                              ------------- ^^^^^^^^ expected `&[u8]`, found `&str`
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&[u8]`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/compress_data.rs:4:8
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub fn compress_data(data: &[u8]) -> io::Result<Vec<u8>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^ -----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/handler.rs:42:30
[INFO] [stdout]    |
[INFO] [stdout] 38 |             let body_bytes: Vec<u8>;
[INFO] [stdout]    |                             ------- expected due to this type
[INFO] [stdout] ...
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str);
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec<u8>`, found `Result<Vec<u8>, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<_>`
[INFO] [stdout]                 found enum `Result<Vec<_>, std::io::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<Vec<u8>, std::io::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str).expect("REASON");
[INFO] [stdout]    |                                                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/handler.rs:42:44
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str);
[INFO] [stdout]    |                              ------------- ^^^^^^^^ expected `&[u8]`, found `&str`
[INFO] [stdout]    |                              |
[INFO] [stdout]    |                              arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&[u8]`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/compress_data.rs:4:8
[INFO] [stdout]    |
[INFO] [stdout]  4 | pub fn compress_data(data: &[u8]) -> io::Result<Vec<u8>> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^ -----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:18:18
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let config = Config::build();
[INFO] [stdout]    |                  ^^^^^^^^^^^^^-- argument #1 is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/config.rs:6:12
[INFO] [stdout]    |
[INFO] [stdout]  6 |     pub fn build(mut args: impl Iterator<Item = String>) -> Result<Config, &'static str> {
[INFO] [stdout]    |            ^^^^^ --------------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let config = Config::build(/* args */);
[INFO] [stdout]    |                                ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `directory` on type `Result<Config, &str>`
[INFO] [stdout]   --> src/main.rs:19:37
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let directory = Arc::new(config.directory);
[INFO] [stdout]    |                                     ^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let directory = Arc::new(config.unwrap().directory);
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `match` arms have incompatible types
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |       let listener = match TcpListener::bind("127.0.0.1:4221") {
[INFO] [stdout]    |  ____________________-
[INFO] [stdout] 22 | |         Ok(l) => l,
[INFO] [stdout]    | |                  - this is found to be of type `TcpListener`
[INFO] [stdout] 23 | |         Err(e) => {
[INFO] [stdout] 24 | |             println!("CRITICAL: Failed to bind. OS Error: {}", e);
[INFO] [stdout] 25 | |             process::exit(1);
[INFO] [stdout]    | |             ^^^^^^^^^^^^^^^^^ expected `TcpListener`, found `()`
[INFO] [stdout] 26 | |         }
[INFO] [stdout] 27 | |     }
[INFO] [stdout]    | |_____- `match` arms have incompatible types
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/handler.rs:42:30
[INFO] [stdout]    |
[INFO] [stdout] 38 |             let body_bytes: Vec<u8>;
[INFO] [stdout]    |                             ------- expected due to this type
[INFO] [stdout] ...
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str);
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^^^^^ expected `Vec<u8>`, found `Result<Vec<u8>, Error>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Vec<_>`
[INFO] [stdout]                 found enum `Result<Vec<_>, std::io::Error>`
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result<Vec<u8>, std::io::Error>` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 42 |                 body_bytes = compress_data(echo_str).expect("REASON");
[INFO] [stdout]    |                                                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `execute` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]   --> src/main.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 pool.execute(move || handle_client(stream, dir_copy)); // instead of raw spawing, send the closure to the pool
[INFO] [stdout]    |                      ^^^^^^^ method not found in `Result<ThreadPool, PoolCreationError>`
[INFO] [stdout]    |
[INFO] [stdout] note: the method `execute` exists on the type `ThreadPool`
[INFO] [stdout]   --> src/pool.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | /     pub fn execute<F>(&self, f: F)
[INFO] [stdout] 36 | |     where
[INFO] [stdout] 37 | |         F: FnOnce() + Send + 'static,
[INFO] [stdout]    | |_____________________________________^
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `ThreadPool` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 pool.expect("REASON").execute(move || handle_client(stream, dir_copy)); // instead of raw spawing, send the closure to the pool
[INFO] [stdout]    |                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `HTTP-Server-RUST` (bin "HTTP-Server-RUST" test) due to 13 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:18:18
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let config = Config::build();
[INFO] [stdout]    |                  ^^^^^^^^^^^^^-- argument #1 is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/config.rs:6:12
[INFO] [stdout]    |
[INFO] [stdout]  6 |     pub fn build(mut args: impl Iterator<Item = String>) -> Result<Config, &'static str> {
[INFO] [stdout]    |            ^^^^^ --------------------------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let config = Config::build(/* args */);
[INFO] [stdout]    |                                ++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `directory` on type `Result<Config, &str>`
[INFO] [stdout]   --> src/main.rs:19:37
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let directory = Arc::new(config.directory);
[INFO] [stdout]    |                                     ^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout] help: one of the expressions' fields has a field of the same name
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let directory = Arc::new(config.unwrap().directory);
[INFO] [stdout]    |                                     +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `match` arms have incompatible types
[INFO] [stdout]   --> src/main.rs:25:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |       let listener = match TcpListener::bind("127.0.0.1:4221") {
[INFO] [stdout]    |  ____________________-
[INFO] [stdout] 22 | |         Ok(l) => l,
[INFO] [stdout]    | |                  - this is found to be of type `TcpListener`
[INFO] [stdout] 23 | |         Err(e) => {
[INFO] [stdout] 24 | |             println!("CRITICAL: Failed to bind. OS Error: {}", e);
[INFO] [stdout] 25 | |             process::exit(1);
[INFO] [stdout]    | |             ^^^^^^^^^^^^^^^^^ expected `TcpListener`, found `()`
[INFO] [stdout] 26 | |         }
[INFO] [stdout] 27 | |     }
[INFO] [stdout]    | |_____- `match` arms have incompatible types
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `execute` found for enum `Result<T, E>` in the current scope
[INFO] [stdout]   --> src/main.rs:37:22
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 pool.execute(move || handle_client(stream, dir_copy)); // instead of raw spawing, send the closure to the pool
[INFO] [stdout]    |                      ^^^^^^^ method not found in `Result<ThreadPool, PoolCreationError>`
[INFO] [stdout]    |
[INFO] [stdout] note: the method `execute` exists on the type `ThreadPool`
[INFO] [stdout]   --> src/pool.rs:35:5
[INFO] [stdout]    |
[INFO] [stdout] 35 | /     pub fn execute<F>(&self, f: F)
[INFO] [stdout] 36 | |     where
[INFO] [stdout] 37 | |         F: FnOnce() + Send + 'static,
[INFO] [stdout]    | |_____________________________________^
[INFO] [stdout] help: consider using `Result::expect` to unwrap the `ThreadPool` value, panicking if the value is a `Result::Err`
[INFO] [stdout]    |
[INFO] [stdout] 37 |                 pool.expect("REASON").execute(move || handle_client(stream, dir_copy)); // instead of raw spawing, send the closure to the pool
[INFO] [stdout]    |                     +++++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425, E0433, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `HTTP-Server-RUST` (bin "HTTP-Server-RUST") due to 13 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af", kill_on_drop: false }`
[INFO] [stdout] 77d010c7551a9e73e736b11c3cd67a10843f70655d303c70b396e3b5c76609af
